package com.yasaka.stock;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@EnableCircuitBreaker
@EnableHystrix
@MapperScan(basePackages = "com.yasaka.stock.dao") //2
//public class ConsumerApplication implements EmbeddedServletContainerCustomizer {
public class ConsumerApplication {

	public static void main(String[] args) {
		SpringApplication.run(ConsumerApplication.class, args);
	}

	//修改springboot内置tomcat端口号
//	@Override
//	public void customize(ConfigurableEmbeddedServletContainer configurableEmbeddedServletContainer) {
//
//		configurableEmbeddedServletContainer.setPort(8202);
//	}
}
